Refactor responsive grid layout and update dev dependencies #620
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR refactors the responsive grid layout system in the climbs list and queue components to use CSS media queries instead of Ant Design's responsive Col props. Additionally, it updates package dependencies to mark certain packages as optional dev dependencies.
Key Changes
Layout Refactoring
Created new CSS module (
climbs-list.module.css) with responsive grid styling using CSS media queries instead of Ant Design'sxs,sm,lg,xlpropsUpdated ClimbsList component to use the new CSS module for responsive column sizing
xs={24} lg={12} xl={12}withclassName={styles.climbCol}Simplified QueueListItem and QueueList components by removing responsive breakpoint props
xs={6} sm={5}withspan={5}(fixed width)xs={15} sm={17}withspan={17}(fixed width)xs={3} sm={2}withspan={2}(fixed width)Dependency Updates
Updated
package-lock.jsonto mark the following asdevOptionalinstead ofdev:@playwright/test@1.57.0@types/react@19.2.7bufferutil@4.1.0node-gyp-build@4.8.4playwright@1.57.0playwright-core@1.57.0Removed
dev: trueflag from production dependencies:react@19.2.3react-dom@19.2.3scheduler@0.27.0Implementation Details
The CSS media query approach provides more reliable responsive behavior compared to JavaScript-based breakpoint detection, particularly for static layouts that don't need dynamic recalculation during runtime.
https://claude.ai/code/session_018BBna6eD1vCRKfZSdK11QR